import axios from "@/utils/request";
//选择城市信息接口 v1/cities/
export const cities = id => axios({
    url: "/v1/cities/" + id
})

//获取城市列表接口 /v1/citie
export const citie = (type) => axios({
    url: "/v1/cities",
    method: "get",
    params: {
        type
    }
})

//获取地址搜索接口/v1/pois
export const pois = (id, keyword) => axios({
    url: "/v1/pois?city_id=" + id,
    method: "get",
    params: {
        keyword
    }
})


//请求经纬度接口
//获取地址搜索接口/v1/pois
export const address = (geohash) => axios({
    url: "/v2/pois/" + geohash,
})